import axios from './axiosFun';


//获取所有书籍列表
export const getBooks = (params) => {return axios.post("/book/getBooks",params)}
//删除书籍
export const deleteBook = (param) => {return axios.get("/book/deleteBook?id="+param)}
//获取所有书籍列表
export const addBook = (params) => {return axios.post("/book/addBook",params)}
//根据书的id获取单独的一本书的具体信息
export const getOneBook = (param) => {return axios.get('/book/getOneBook?id='+param)}
//获取所有书籍的分类
export const getClass = () => {return axios.get('/book/getClasses')} 
//根据书的id获取这本书自己的所有的分类信息的类id
export const getBookClassesById = (param) => {return axios.get('/book/getBookClassesById?id='+param)}
